using System;
using System.Collections.Generic;
using System.Text;
using System.Runtime.InteropServices;


namespace ClassDll3
{
    [Guid("B3633849-261A-4120-A0F6-BE78BB1466BE")]
    public interface AddInterface
    {
        [DispId(1)]
        void setAdd(int ix, int iy);
        [DispId(2)]
        int GetResult();
    }

    [Guid("2C5B7580-4038-4d90-BABD-8B83FCE5A467")]
    [ClassInterface(ClassInterfaceType.None)]
    public class Add:AddInterface
    {
        int x = 0;
        int y = 0;
        public void setAdd(int ix, int iy)
        {
            x = ix;
            y = iy;
        }
        public int GetResult()
        {
            return x+y;
        }
    }
}
